package com.example.module_web.view.fragments;

import com.example.module_web.R;
import com.example.module_web.base.BaseFragment;
import com.example.module_web.databinding.WebFragmentBigpictureBinding;

import Util.ImageLoader;


/**
 * Created by admin on 2018/1/25.
 */


public class BigPicture_Fragment extends BaseFragment<WebFragmentBigpictureBinding> {
    private WebFragmentBigpictureBinding mBinding;
    private String url;
    public static BigPicture_Fragment NewIntence(String url){
        BigPicture_Fragment bigPicture_fragment=new BigPicture_Fragment();
        bigPicture_fragment.setUrl(url);
        return bigPicture_fragment;
    }
    @Override
    public int setLayoutId() {
        return R.layout.web_fragment_bigpicture;
    }
    @Override
    public void init(WebFragmentBigpictureBinding binding) {
        this.mBinding=binding;
        ImageLoader.load(getContext(),binding.bigpicture,url);

    }
    private void setUrl(String url){
        this.url=url;
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }
}
